Mac 出现brew command not found的解决办法 您所在的位置:网站首页 gitee premium Mac 出现brew command not found的解决办法

Mac 出现brew command not found的解决办法

#Mac 出现brew command not found的解决办法| 来源: 网络整理| 查看: 265

1.  Mac 出现brew command not found的解决办法

安装homebrew

1.1 第一种安装方法

在终端输入命令安装brew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

如若出现:

curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

说明该网址http://raw.githubusercontent.com/ 被墙了,无法访问。

(1)第一种解决方法:设置mac的DNS为114.114.114.114或者8.8.8.8

设置DMS方法:https://jingyan.baidu.com/article/4dc40848081204c8d946f184.html

(2)第二种解决方法:gitee的自动脚本(已经安装过brew的请自行备份后,再运行下面的安装脚本!)

安装脚本命令为:

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

按照要求进行填写即可。

注:如若要卸载该脚本安装的brew,命令为:

/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)"

1.2 其他安装方法

传送门:https://mirrors.tuna.tsinghua.edu.cn/help/homebrew/ | https://www.cnblogs.com/hyh123/p/14336584.html

 

参考文献:https://zhuanlan.zhihu.com/p/111014448|http://www.chenxm.cc/article/1071.html



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有